<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="#A" data-toggle="tab">{:lang('WEB_SITE_INFOS')}</a></li>
        <li><a href="#C" data-toggle="tab">APP版本管理</a></li>
        <li><a href="#F" data-toggle="tab">登录协议弹窗</a></li>
        <li><a href="#G" data-toggle="tab">{:lang('SEO_SETTING')}</a></li>
    </ul>
    <form class="form-horizontal js-ajax-form margin-top-20" role="form" action="{:url('setting/sitePost')}"
          method="post">
        <fieldset>
            <div class="tabbable">
                <div class="tab-content">

					<!-- 网站信息 -->
                    <div class="tab-pane active" id="A">

						
                        <div class="form-group">
                            <label for="input-company_name" class="col-sm-2 control-label">公司名称</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-company_name" name="options[company_name]"
                                       value="{$site_info.company_name|default=''}">
                                       <p class="help-block">公司名称(网站首页关于我们使用)</p>
                            </div>
                        </div>

                        <div class="form-group">
                            <label  for="input-company_desc" class="col-sm-2 control-label">公司简介</label>
                            <div class="col-md-6 col-sm-10">        
                                <textarea  class="form-control" name="options[company_desc]">{$site_info['company_desc']|default=''}</textarea>
                                <p class="help-block">公司简介（网站首页关于我们使用,字数在120字以内）</p>
                            </div>
                        </div>
						
						<div class="form-group">
                            <label for="input-app_name" class="col-sm-2 control-label">APP名称</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-app_name" name="options[app_name]"
                                       value="{$site_info.app_name|default=''}"><p class="help-block">应用名称(用户认证时协议显示)</p>
                            </div>
                        </div>
						<div class="form-group">
                            <label for="input-sitename" class="col-sm-2 control-label">网站标题</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-sitename" name="options[sitename]"
                                       value="{$site_info.sitename|default=''}"><p class="help-block">网站标题</p>
                            </div>
                        </div>
						
						<div class="form-group">
                            <label for="input-site" class="col-sm-2 control-label">网站域名</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-site" name="options[site]"
                                       value="{$site_info.site|default=''}"><p class="help-block">网站域名，http:// 开头  尾部不带 /</p>
                            </div>
                        </div>

						
						<div class="form-group">
                            <label for="input-copyright" class="col-sm-2 control-label">版权信息</label>
                            <div class="col-md-6 col-sm-10">
								<textarea class="form-control" id="input-copyright" name="options[copyright]">{$site_info.copyright|default=''}</textarea><p class="help-block">版权信息（200字以内）</p>
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="input-copyright_url" class="col-sm-2 control-label">版权链接</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-copyright_url" name="options[copyright_url]"
                                       value="{$site_info.copyright_url|default=''}">
                            </div>
                        </div>
                        
						<div class="form-group">
                            <label for="input-qq" class="col-sm-2 control-label">客服QQ</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-qq" name="options[qq]"
                                       value="{$site_info.qq|default=''}"><p class="help-block">官方客服QQ</p>
                            </div>
                        </div>
						
						<div class="form-group">
                            <label for="input-mobile" class="col-sm-2 control-label">客服电话</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-mobile" name="options[mobile]"
                                       value="{$site_info.mobile|default=''}"><p class="help-block">官方客服电话</p>
                            </div>
                        </div>
						
						<div class="form-group">
							<label for="input-user_login" class="col-sm-2 control-label">水印图片</label>
							<div class="col-md-6 col-sm-10">
								<input type="hidden" name="options[watermark]" id="thumbnail" value="{$site_info['watermark']}">
								<a href="javascript:uploadOneImage('图片上传','#thumbnail');">
									<if condition="empty($site_info.watermark)">
									<img src="__TMPL__/public/assets/images/default-thumbnail.png"
											 id="thumbnail-preview"
											 style="cursor: pointer;max-width:100px;max-height:100px;"/>
									<else/>
									<img src="{:get_upload_path($site_info.watermark)}"
										 id="thumbnail-preview"
										 style="cursor: pointer;max-width:100px;max-height:100px;"/>
									</if>
								</a>
								<input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片">
							</div>
						</div>
						
						<div class="form-group">
							<label for="input-qr_url" class="col-sm-2 control-label">安卓下载二维码</label>
							<div class="col-md-6 col-sm-10">
								<input type="hidden" name="options[qr_url]" id="thumbewm" value="{$site_info['qr_url']}">
								<a href="javascript:uploadOneImage('图片上传','#thumbewm');">
									<if condition="empty($site_info.qr_url)">
									<img src="__TMPL__/public/assets/images/default-thumbnail.png"
											 id="thumbewm-preview"
											 style="cursor: pointer;max-width:100px;max-height:100px;"/>
									<else/>
									<img src="{:get_upload_path($site_info.qr_url)}"
										 id="thumbewm-preview"
										 style="cursor: pointer;max-width:100px;max-height:100px;"/>
									</if>
								</a>
								<input type="button" class="btn btn-sm btn-cancel-thumbewm" value="取消图片">
							</div>
						</div>
                       
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="1">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>
					<!-- APP版本管理 -->
					
                    <div class="tab-pane" id="C">
                        <div class="form-group">
                            <label for="input-apk_ver" class="col-sm-2 control-label">APK版本号</label>
                            <div class="col-md-6 col-sm-10">
                                 <input type="text" class="form-control" id="input-apk_ver" name="options[apk_ver]"
                                       value="{$site_info.apk_ver|default=''}"><p class="help-block">安卓APP最新的版本号，请勿随意修改。如果该版本号与安卓app内版本号不一致，用户登录时会有系统更新提醒</p>
                            </div>
                        </div>
						
						<div class="form-group">
                            <label for="input-apk_url" class="col-sm-2 control-label">APK下载链接</label>
                            <div class="col-md-6 col-sm-10">
                                 <input type="text" class="form-control" id="input-apk_url" name="options[apk_url]"
                                       value="{$site_info.apk_url|default=''}"><p class="help-block">安卓最新版APK下载链接</p>
                            </div>
                        </div>
						
						<div class="form-group">
                            <label  for="input-apk_des" class="col-sm-2 control-label">APk更新说明</label>
                            <div class="col-md-6 col-sm-10">        
								<textarea  class="form-control" name="options[apk_des]">{$site_info['apk_des']|default=''}</textarea><p class="help-block">APk更新说明（200字以内）</p>
                            </div>
                        </div>
						

                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>


                    <div class="tab-pane" id="F">
                        

                        <div class="form-group">
                            <label for="input-login_alert_title" class="col-sm-2 control-label"><span
                                    class="form-required"></span>弹框标题</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-login_alert_title" name="options[login_alert_title]" value="{$site_info.login_alert_title|default=''}">
                            </div> 
                        </div>
                        
                        <div class="form-group">
                            <label for="input-login_alert_content" class="col-sm-2 control-label">弹框内容</label>
                            <div class="col-md-6 col-sm-10">
                                <textarea class="form-control" id="input-login_alert_content" name="options[login_alert_content]" >{$site_info.login_alert_content|default=''}</textarea>
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-login_clause_title" class="col-sm-2 control-label"><span
                                    class="form-required"></span>APP登录界面底部协议标题</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-login_clause_title" name="options[login_clause_title]" value="{$site_info.login_clause_title|default=''}">
                            </div> 
                        </div>

                        <div class="form-group">
                            <label for="input-login_private_title" class="col-sm-2 control-label"><span
                                    class="form-required"></span>隐私政策名称</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-login_private_title" name="options[login_private_title]" value="{$site_info.login_private_title|default=''}">
                                <p class="help-block">填写的名称必须与弹框内容和登录界面底部协议标题中填写的名称相符,必须包含书名号《》</p>
                            </div> 
                        </div>

                        <div class="form-group">
                            <label for="input-login_private_url" class="col-sm-2 control-label"><span
                                    class="form-required"></span>隐私政策跳转链接</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-login_private_url" name="options[login_private_url]" value="{$site_info.login_private_url|default=''}">
                                <p class="help-block">本站链接请以/开头，如：/portal/page/index?id=26 外链请以http://或https://开头</p>
                            </div> 
                        </div>

                        <div class="form-group">
                            <label for="input-login_service_title" class="col-sm-2 control-label"><span
                                    class="form-required"></span>服务协议名称</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-login_service_title" name="options[login_service_title]" value="{$site_info.login_service_title|default=''}">
                                <p class="help-block">填写的名称必须与弹框内容和登录界面底部协议标题中填写的名称相符,必须包含书名号《》</p>
                            </div> 


                        </div>

                        <div class="form-group">
                            <label for="input-login_service_url" class="col-sm-2 control-label"><span
                                    class="form-required"></span>服务协议跳转链接</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-login_service_url" name="options[login_service_url]" value="{$site_info.login_service_url|default=''}">
                                <p class="help-block">本站链接请以/开头，如：/portal/page/index?id=38 外链请以http://或https://开头</p>
                            </div> 
                        </div>


                        

                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="1">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>

                    <div class="tab-pane" id="G">
                        <div class="form-group">
                            <label for="input-site_seo_title" class="col-sm-2 control-label">{:lang('WEBSITE_SEO_TITLE')}</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-site_seo_title"
                                       name="options[site_seo_title]" value="{$site_info.site_seo_title|default=''}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site_seo_keywords" class="col-sm-2 control-label">{:lang('WEBSITE_SEO_KEYWORDS')}</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-site_seo_keywords"
                                       name="options[site_seo_keywords]"
                                       value="{$site_info.site_seo_keywords|default=''}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site_seo_description" class="col-sm-2 control-label">{:lang('WEBSITE_SEO_DESCRIPTION')}</label>
                            <div class="col-md-6 col-sm-10">
                                <textarea class="form-control" id="input-site_seo_description"
                                          name="options[site_seo_description]">{$site_info.site_seo_description|default=''}</textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>

                    <div class="tab-pane" id="H">
                        <div class="form-group">
                            <label for="input-cdn_static_root" class="col-sm-2 control-label">静态资源cdn地址</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-cdn_static_root"
                                       name="cdn_settings[cdn_static_root]"
                                       value="{$cdn_settings.cdn_static_root|default=''}">
                                <p class="help-block">
                                    不能以/结尾；设置这个地址后，请将ThinkCMF下的静态资源文件放在其下面；<br>
                                    ThinkCMF下的静态资源文件大致包含以下(如果你自定义后，请自行增加)：<br>
                                    themes/admin_simplebootx/public/assets<br>
                                    static<br>
                                    themes/simplebootx/public/assets<br>
                                    例如未设置cdn前：jquery的访问地址是/static/js/jquery.js, <br>
                                    设置cdn是后它的访问地址就是：静态资源cdn地址/static/js/jquery.js
                                </p>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>

                </div>
            </div>
        </fieldset>
    </form>

</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
<script type="text/javascript">
	(function(){
		$('.btn-cancel-thumbnail').click(function () {
			$('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
			$('#thumbnail').val('');
		});
		
		$('.btn-cancel-thumbewm').click(function () {
			$('#thumbewm-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
			$('#thumbewm').val('');
		});
		
	})()

</script>
</body>
</html>
